import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
const routes: RouteRecordRaw[] = [
  {
    path: "/",
    redirect: "/index",
    children: [
      {
        path: "index",
        component: () => import("@/views/Home.vue"),
      },
      {
        path: "send",
        component: () => import("@/views/send.vue"),
      },
      {
        path: "bind",
        component: () => import("@/views/bind.vue"),
      },
      {
        path: "pay",
        component: () => import("@/views/pay.vue"),
      },
      {
        path: "result",
        component: () => import("@/views/result.vue"),
      },
    ],
  },
];
export default createRouter({
  routes,
  history: createWebHashHistory(),
  scrollBehavior: () => {
    return {
      left: 0,
      top: 0,
    };
  },
});
